package com.cn.wanxi.dao;

import com.cn.wanxi.model.NewsModel;
import com.cn.wanxi.model.PageModel;

import java.util.List;

public interface NewsDao {
    List<NewsModel> getNewsModelList(PageModel pageModel);
    List<NewsModel> getNewsModelForHome();
    Integer getNewsCount();
    Integer addNews(NewsModel newsModel);
    NewsModel findById(NewsModel newsModel);
    List<NewsModel> findNewsBySome(NewsModel newsModel);
}
